<include file="Common:header" />
<!-- /. NAV SIDE  -->
<include file="Common:left" />
<!-- /. NAV SIDE  -->
<div id="page-wrapper">
	<div class="header">
		<h1 class="page-header">
			商品管理 <small>Welcome {$Think.config.system_tag}</small>
		</h1>
		<ol class="breadcrumb">
			<li><a href="{:U('Index/index')}">首页</a></li>
			<li class="active">商品分类列表</li>
			<div style="float:right"><a href="#" onclick="openlayer('添加商品分类','{:U(\'Goods/addGoodsCate\')}')">添加商品分类</a></div>
		</ol> 
	</div>
	<div id="page-inner">
		<div class="row">
			<div class="col-xs-12">
				<!--Search content-->
				<!--Search content-->
				<!--Formlist content-->
				<div class="panel panel-default">
					<div class="panel-body">
						<div class="table-responsive">
							<table class="table table-hover">
								<thead>
									<tr>
										<th>名称</th>
										<th>类型</th>
										<th>状态</th>
										<th>排序</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
									<volist name="list" id="vo">
                              <assign name="secondList" value="$vo['second_list']" />
										<tr>
											<td style="line-height:30px">{$vo.cate_name}</td>
											<td style="line-height:30px">{$vo.type_name}</td>
											<td>
											<if condition="$vo.status eq 1">
											启用
											<else />
											停用
											</if>
											</td>
											<td style="line-height:30px">{$vo.sort}</td>
											<td>
											<a href="javascript:void(0)" class="layui-btn layui-btn-xs layui-btn-normal" onclick="openlayer('修改','{:U(\'Goods/editGoodsCate\',array(\'id\'=>$vo[\'id\']))}');return false;">修改</a>
											</td>
										</tr>
                              <volist name="secondList" id="v">
                                 <tr>
                                    <td style="line-height:30px">&nbsp;&nbsp;— {$v.cate_name}</td>
                                    <td>
                                    <if condition="$v.status eq 1">
                                    启用
                                    <else />
                                    停用
                                    </if>
                                    </td>
                                    <td style="line-height:30px">{$v.sort}</td>
                                    <td>
                                    <a href="javascript:void(0)" class="layui-btn layui-btn-xs layui-btn-normal" onclick="openlayer('修改','{:U(\'Goods/editGoodsCate\',array(\'id\'=>$v[\'id\']))}');return false;">修改</a>
                                    </td>
                                 </tr>
                              </volist>
									</volist>
								</tbody>
							</table>
							{$page}
						</div>
					</div>
				</div>
				<!--Formlist content-->
			</div>
		</div>
	</div>
	<include file="Common:foot" />
	<script>
		layui.use('form', function(){
		  var form = layui.form;
		});
	</script>
	 <!-- /. PAGE INNER  -->
</div>
<include file="Common:footer" />
    